package com.qf.commerce.common.dto;

import lombok.Data;

import java.math.BigDecimal;

/*
 * @author 358
 * @since JDK 1.8
 * @data 2023/9/12 19:42
*/

@Data
public class BalanceTransactionsDto {

    /**
    * 用户ID
    */
    private Integer userId;

    /**
    * 变动金额
    */
    private BigDecimal amount;

    /**
    * 变动后金额
    */
    private BigDecimal amonutAfter;

    /**
    * 变动类型 0=消费 1=充值
    */
    private Integer transactionType;

    /**
    * 变动说明
    */
    private String comment;

    public BalanceTransactionsDto(Integer userId, BigDecimal amount, BigDecimal amonutAfter, Integer transactionType, String comment) {
        this.userId = userId;
        this.amount = amount;
        this.amonutAfter = amonutAfter;
        this.transactionType = transactionType;
        this.comment = comment;
    }
}